/****************************************************************************
/  file: io.sc
/  Author: Jungmin Park
/  Date: 04/18/2011
/  Description: testbench
****************************************************************************/

#include <stdio.h>

behavior IO(out long input1, out long input2, in float out_re, in float out_im, 
	          out event start, in event done, in event c, out event d)
{
  int i;
  void main(void) 
  {  
    input1 = 0x1234abcd;
    input2 = 0x36478fac;
    notify (start); 
    wait (done);
    
    printf ("-------- The output ----------\n"); 
    for (i=0; i<16; i++)
    {
      wait (c);
      printf ("Y[%d] = %f+i%f \n", i, out_re, out_im);
      notify (d);
	  }
  }
};